|
|
|
|
|
|
|
Learn to identify which controls are used for input |
|
|
|
|
|
|
|
|
Become familiar with the controls used for display purposes |
|
|
|
|
|
|
|
|
Learn the common properties of all controls |
|
|
|
|
|
|
|
|
Find out how to add controls to a form |
|
|
|
|
|
|
|
|
Learn the naming standards for controls |
|
|
|
|
|
|
|
|
Sample Project Filename: \Chapter03\Controls.vbp |
|
|
|
|
|
|
|
|
A blank form is not very useful by itself. To jazz up the form you created in the last chapter, youll now place controls on it. Controls are what the user interacts with on a form. For example, label controls display information to the user, and text box controls allow the user to enter information into the form. |
|
|
|
|
|
|
|
|
I like to think of controls as the building blocks of the user interface of your application. Just like a mechanic uses nuts and bolts to assemble an engine, youll use controls to build your application. Each control, by itself, is just one piece of the engine. Separately they dont do much, but when you put them together, you have a great application. |
|
|
|
|
|
|
|
|
Adding Controls to the Form |
|
|
|
|
|
|
|
|
Controls may be added to a form two ways. The first method is to double-click the control in the toolbox. This places the control in the middle of the form with a default height and width. The second method is to click once on the control in the toolbox and then move your mouse to the position on the form where you want to begin drawing the control. You size the control by clicking and holding the left mouse button down while drawing on the form. Youll repeat this process for each of the controls needed to create your user interface. In this chapter, youll learn which controls youll be using for your user interface, but first lets review some basics of control manipulation. |
|
|
|
|
|